package org.dromara.basic.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.basic.domain.Member;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 成员信息表视图对象 phy_member_info
 *
 * @author chl
 * @date 2024-08-19
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = Member.class)
public class MemberImportVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;


//    @ExcelProperty(value = "序号")
    private Integer index;
    /**
     * 名字
     */
    @ExcelProperty(value = "姓名")
    private String name;
    /**
     * 工号或者学号
     */
    @ExcelProperty(value = "学号")
    private String idNumber;


    /**
     * 性别
     */
    @ExcelProperty(value = "性别", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_user_sex")
    private String gender;

    /**
     * 民族
     */
    @ExcelProperty(value = "民族", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "phy_ethnicity")
    private String ethnicity;

    /**
     * 手机号码
     */
    @ExcelProperty(value = "手机号码")
    private String phoneNumber;
    /**
     * 年龄
     */
    @ExcelProperty(value = "年龄")
    private Long age;

    /**
     * 身份证号
     */
    @ExcelProperty(value = "身份证号")
    private String idCardNumber;

    /**
     * 住址
     */
    @ExcelProperty(value = "住址")
    private String address;


    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_normal_disable")
    private String status;

    @ExcelProperty(value = "入学年份")
    private String years;

    @ExcelProperty(value = "年级")
    private String grade;

    @ExcelProperty(value = "班级")
    private String className;


    @ExcelProperty(value = "密码")
    private String password;

}
